import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

//移动端布局
import "lib-flexible";

// 引入全局样式
import 'styles/common.css';

//vant 库引用
import Vant from "vant";
import "vant/lib/index.css";
Vue.use(Vant);

/* 300毫秒点击延迟问题的解决方案（尤其是移动端）优化用户体验 */
import fastClick from "fastclick";
fastClick.attach(document.body);

import http from '@/api';
Vue.prototype.$http = http;


// 引入util功能函数
import * as util from "@/util/util";
Vue.prototype.$util = util ;

Vue.prototype.$Event = new Vue();

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
